package cn.iocoder.yudao.module.crossborder.platform.controller.admin.platformmapping.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - 跨境电商数据映射配置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PlatformMappingRespVO {

    @Schema(description = "映射编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "833")
    @ExcelProperty("映射编号")
    private Long id;

    @Schema(description = "平台编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18143")
    @ExcelProperty("平台编号")
    private Long platformId;

    @Schema(description = "店铺编号（为空表示平台级映射）", example = "7290")
    @ExcelProperty("店铺编号（为空表示平台级映射）")
    private Long storeId;

    @Schema(description = "映射类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("映射类型")
    private String mappingType;

    @Schema(description = "本地字段", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("本地字段")
    private String localField;

    @Schema(description = "平台字段", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("平台字段")
    private String platformField;

    @Schema(description = "本地值")
    @ExcelProperty("本地值")
    private String localValue;

    @Schema(description = "平台值")
    @ExcelProperty("平台值")
    private String platformValue;

    @Schema(description = "数据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("数据类型")
    private String dataType;

    @Schema(description = "转换规则JSON")
    @ExcelProperty("转换规则JSON")
    private String transformRule;

    @Schema(description = "是否必填", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否必填")
    private Boolean isRequired;

    @Schema(description = "默认值")
    @ExcelProperty("默认值")
    private String defaultValue;

    @Schema(description = "验证规则")
    @ExcelProperty("验证规则")
    private String validationRule;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排序")
    private Integer sort;

    @Schema(description = "状态（0正常 1停用）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("状态（0正常 1停用）")
    private Integer status;

    @Schema(description = "备注", example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
